package com.example.bookmall.entity.order;
import com.example.bookmall.entity.address.Address;
import com.example.bookmall.entity.address.AddressVo;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data

//返回给前端的订单实体
public class OrderVo {

    //订单id
    private String orderId;
    //用户id
    private Integer userId ;
    // 用户名
    private String username;

    //总价
    private BigDecimal totalAmount;

    // 总数量
    private Integer quantity;
    //订单状态
    private Integer orderStatus;
    //支付方式
    private Integer payMethod ;

    //地址id
    private Integer addressId;
    //下单时间
    private LocalDateTime datetime;

    /*//收货地址
    private String address;

    */

    //收货人
    private String consignee;

    //收货电话
    private String phone;

    //订单明细
    private List<OrderItemVo> orderitems ;


    private AddressVo addressVo;


    private String Reason;


    //管理员是否同意  1:同意 0:拒绝
    private Integer adminAgreement;
    //管理员理由
    private String adminReason;
}
